package objectView;

import java.io.Serializable;

public class DepartmentCom implements Serializable {
	private int companyId;
	private int depId;
	private String depName;
	private String depDescribe;
	private int depTotalEm;
	private String depPhone;
	private String depAddress;
	
	public int getCompanyId() {
		return companyId;
	}
	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	public int getDepId() {
		return depId;
	}
	public void setDepId(int depId) {
		this.depId = depId;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getDepDescribe() {
		return depDescribe;
	}
	public void setDepDescribe(String depDescribe) {
		this.depDescribe = depDescribe;
	}
	public int getDepTotalEm() {
		return depTotalEm;
	}
	public void setDepTotalEm(int depTotalEm) {
		this.depTotalEm = depTotalEm;
	}
	public String getDepPhone() {
		return depPhone;
	}
	public void setDepPhone(String depPhone) {
		this.depPhone = depPhone;
	}
	public String getDepAddress() {
		return depAddress;
	}
	public void setDepAddress(String depAddress, String districName, String provinceName) {
		if(depAddress == null || depAddress.isEmpty()){
			depAddress = "";
		}else {
			depAddress = depAddress + " - ";
		}
		this.depAddress = depAddress + districName +" - "+ provinceName;
	}
}
